<?php
/********************************************************
 *
 * 此文件的作用:
 *		文章表的入口
 *
 * @copyright Copyright (c) 2008-2009
 * @author 刘昌功 lcg635@126.com
 *
 ********************************************************/
defined('APP_DIR') or die('404 Not Found');

FLEA::loadClass('Common_Table');

class Table_LostProperty extends Common_Table {
    var $tableName = 'lost_property';
    var $primaryKey = 'property_id';

	function form($type, $data = null) {
		$this->_ui = FLEA::initWebControls();
		$form = array(
			'property_id' => $this->_ui->control('Hidden', 'property_id',
				array(
					'value' => $data['property_id']
				),
				true
			),
			'number' => $this->_ui->control('TextBox', 'number',
				array(
					'required' => 'true',
					'Value' => $data['number']
				),
				true
			),
			'name' => $this->_ui->control('TextBox', 'name',
				array(
					'required' => 'true',
					'Value' => $data['name'],
					'showName' => '失称名称'
				),
				true
			),
			'feature_simple' => $this->_ui->control('TextBox', 'feature_simple',
				array(
					'required' => 'true',
					'Value' => $data['feature_simple']
				),
				true
			),
			'feature_detail' => $this->_ui->control('TextBox', 'feature_detail',
				array(
					'required' => 'true',
					'Value' => $data['feature_detail']
				),
				true
			),
			'pick_up_by' => $this->_ui->control('TextBox', 'pick_up_by',
				array(
					'required' => 'true',
					'Value' => $data['pick_up_by']
				),
				true
			),
			'pick_up_at' => $this->_ui->control('Date', 'pick_up_at',
				array(
					'required' => 'true',
					'Value' => $data['pick_up_at']
				),
				true
			),
			'pick_up_in' => $this->_ui->control('TextBox', 'pick_up_in',
				array(
					'required' => 'true',
					'Value' => $data['pick_up_in']
				),
				true
			),
			'pick_up_contact' => $this->_ui->control('TextBox', 'pick_up_contact',
				array(
					'required' => 'true',
					'Value' => $data['pick_up_contact']
				),
				true
			),
			'recorder' => $this->_ui->control('TextBox', 'recorder',
				array(
					'required' => 'true',
					'Value' => $data['recorder']
				),
				true
			),
			'store_place' => $this->_ui->control('TextBox', 'store_place',
				array(
					'required' => 'true',
					'Value' => $data['store_place']
				),
				true
			)
		);
		return $form;
	}
}
